start

open fun start()

Starts or resumes the active operation of this control.

This typically involves starting content playback, animations, data fetching, or making the control visually active. If the control was previously #stop() stopped, this method should resume its operation. Calling start()} on an already started control should ideally be a no-op or handle resumption gracefully.

This method might be called automatically after #initialize(Module) if #isAutoStart() is true, or explicitly by the player system.

Starts the WebView by loading the appropriate content.

If a web application is specified (this.webApp != null), it loads "https://appassets.androidplatform.net/index.html". Otherwise, if HTML content is provided (this.html is not empty), it loads the HTML data directly. If neither a web application nor HTML content is available, it loads the URL specified in this.url.

If a refresh interval is set (this.refreshInterval >0), it schedules a periodic reload of the WebView content using a Handler and Runnable.

See also